<template>
	<view>
		<view class="news-box">
			<news-card v-for="(item,index) in 4" :key="index" :news="sampleNews"></news-card>
		</view>
	</view>
</template>

<script setup>
	import newsCard from '/components//new-card/new-card.vue';

	// 模拟资讯数据
	const sampleNews = {
		cover: '/static/image/2.jpg',
		title: '这是一条资讯标题',
		author: {
			avatar: '/static/icon/grid-card/doufu.png',
			nickname: '作者昵称'
		},
		desc: '这是资讯的详细内容，可能包含一些文字描述和其他信息。',
		readCount: 123,
		likeCount: 45,
		commentCount: 10
	};
</script>

<style scoped>
	.news-box {
		padding: 20rpx;
	}
</style>